import request from '@/utils/request'
// 新增宣传语
export function addSlogan(data) {
	return request({
		url: '/admin/config/welcome',
		method: 'post',
		data
	})
}
// 宣传语分页
export function pagingSlogan(data) {
	return request({
		url: '/admin/config/welcome/paging',
		method: 'post',
		data
	})
}
// 宣传语列表
export function listSlogan(data) {
	return request({
		url: '/admin/config/welcome/list',
		method: 'post',
		data
	})
}
// 宣传语详情
export function getSloganDetail(id) {
	return request({
		url: '/admin/config/welcome/' + id,
		method: 'get',
	})
}
// 修改宣传语
export function editSlogan(data) {
	return request({
		url: '/admin/config/welcome',
		method: 'put',
		data
	})
}
// 批量删除宣传语
export function delSlogan(idList) {
	return request({
		url: '/admin/config/welcome/' + idList,
		method: 'delete',
	})
}
// 宣传语导入
export function importSlogan(data) {
	return request({
		url: '/admin/config/welcome/import',
		method: 'post',
		data
	})
}
// 宣传语导出
export function exportSlogan(data) {
	return request({
		url: '/admin/config/welcome/export',
		method: 'post',
		data
	})
}
// 上下架
export function publishSlogan(data) {
	return request({
		url: '/admin/config/welcome/publish',
		method: 'put',
		data
	})
}

